﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true"
    CodeBehind="EditDicItemDetail.aspx.cs" Inherits="PreContractWeb.Administration.EditDicItemDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        $(function () {
            var value = $("#ctl00_ContentPlaceHolder1_lblProlemLV2DicTypeID").text();

            if ($("#ctl00_ContentPlaceHolder1_dpDicItemType").val() != value) {
                $("#ctl00_ContentPlaceHolder1_trProblemLV1").hide();
            }

            $("#ctl00_ContentPlaceHolder1_dpDicItemType").change(function () {
                if ($(this).val() == value) {
                    $("#ctl00_ContentPlaceHolder1_trProblemLV1").show();
                }
                else {
                    $("#ctl00_ContentPlaceHolder1_trProblemLV1").hide(); ;
                }
            });
        });
    </script>
    <div id="divError" runat="server" visible="false">
    </div>
    <div id="divConnect" runat="server" align="center">
        <table width="95%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" height="50" valign="middle">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td rowspan="3" width="50">
                                <img alt="" src="" class="ContentTitle" border="0" />
                            </td>
                            <td colspan="2" height="5">
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" class="ContentTitle">
                                <asp:Label ID="CNTitleLabel" runat="server"></asp:Label><br />
                                (<asp:Label ID="ENTitleLabel" runat="server"></asp:Label>)
                            </td>
                            <td height="30" align="right">
                                <asp:Button ID="SaveButton" runat="server" Text="保存(Save)" CssClass="bgButton" OnClick="SaveButton_Click" />
                                &nbsp;<input id="CancelButton" class="bgButton" type="button" value="取消(Cancel)"
                                    onclick="window.close();" />
                            </td>
                        </tr>
                        <tr>
                            <td height="10" valign="top">
                                <img alt="" class="ContentTitle" src="" imgsource="../Images/BG-SubMenuTitle-A-"
                                    imgtype=".png" width="100%" height="3" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td width="100%">
                    <br />
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="panel_header">
                                基本信息(Basic Information)
                            </td>
                        </tr>
                        <tr>
                            <td class="panel_body">
                                <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="20%" class="content_title">
                                            名称:<br />
                                            Name:
                                        </td>
                                        <td width="30%" class="content_data">
                                            <asp:TextBox ID="DicItemValueTextBox" runat="server" Width="150px" CssClass="cssText"
                                                allowempty="false"></asp:TextBox>
                                            <span class="required" style="color: #ff0000"><strong>*</strong></span>
                                        </td>
                                        <td width="20%" class="content_title">
                                            描述:<br />
                                            Description:
                                        </td>
                                        <td width="30%" class="content_data">
                                            <asp:TextBox ID="DicItemDescTextBox" runat="server" allowempty="true" CssClass="cssText"
                                                Width="150px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" class="content_title">
                                            类型:<br />
                                            Type:
                                        </td>
                                        <td width="30%" class="content_data">
                                            <asp:DropDownList ID="dpDicItemType" runat="server" Width="150px">
                                            </asp:DropDownList>
                                            <span class="required" style="color: #ff0000"><strong>*</strong></span>
                                        </td>
                                        <td width="20%" class="content_title">
                                            是否可用:<br />
                                            Active:
                                        </td>
                                        <td width="30%" class="content_data">
                                            <asp:CheckBox ID="ActiveCheckBox" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trProblemLV1" runat="server">
                                        <td width="20%" class="content_title">
                                            关联1级问题:<br />
                                            Problem Level 1
                                        </td>
                                        <td width="30%" class="content_data">
                                            <asp:DropDownList ID="dpProlemLV1" runat="server" Width="150px">
                                            </asp:DropDownList>
                                            <span class="required" style="color: #ff0000"><strong>*</strong></span>
                                        </td>
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="display: none">
                                <asp:Label ID="lblProlemLV2DicTypeID" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
